<template>
  <div class="tool">
    <el-button size="mini" type="danger" @click="setting">设置</el-button>
    <el-button size="mini" type="primary" @click="$router.push(`/salary/report/${data}`)">{{data.dataMonth}}报表</el-button>
  </div>
</template>

<script>
import {getCompanySetting} from '@/api/salary'
export default {
  methods:{
    setting() {
      this.$router.push('/salary/setting')
    }
  },
  data() {
    return {
      data:{}
    }
  },
  async created() {
      const list=await getCompanySetting()
      console.log(list);
      this.data=list
    }
}
</script>

<style>
.tool {
  padding:20px;
}
</style>